package cn.admin.service.impl;

import cn.admin.dao.InvitationCodeMapper;
import cn.admin.service.InvitationCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author: 毛苏宇
 * @Description: You can do it!
 * @Date: Create in 16:10 2019/4/20
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class InvitationCodeServiceImpl implements InvitationCodeService {

    @Autowired
    private InvitationCodeMapper invitationCodeMapper;

    @Override
    public boolean modifyCode(String code) {
        return invitationCodeMapper.updateCode(code)==1?true:false;
    }


}
